﻿using System.Collections.Generic;
using BoldBrick.OneIntranet.HR.Properties;
using BoldBrick.SharePoint.CommonControls.DataObjects.Base;

namespace BoldBrick.OneIntranet.HR.DataObjects.Lists.WorkflowsListData.Views
{
	public class WorkflowsView : BaseView
	{
		public WorkflowsView()
		{
			this.IsDefault = true;
			this.XslLink = Settings.Default.List_Workflows_View_Workflows_XslLink;
			this.ContentTypeId = SharePoint.CommonControls.DataObjects.ContentTypes.ContentTypes.RootFolderContentType.ID;
			this.DefaultViewForContentType = true;

			this.Query = Settings.Default.List_Workflows_View_Workflows_Query;
		}

		protected override string GetTitleResourceKey()
		{
			return "List_Workflows_View_Workflows_Title";
		}

		protected override string GetPageNameResourceKey()
		{
			return "List_Workflows_View_Workflows_PageName";
		}

		public override List<ListColumn> GetViewColumns()
		{
			List<ListColumn> columns = new List<ListColumn>
			                           	{
			                           		SharePoint.CommonControls.DataObjects.SiteColumns.TitleWithMenuColumn,
											SiteColumns.WorkflowPositionLookupColumn
			                           	};
			return columns;
		}
	}
}
